import java.time.LocalDate;
import java.time.LocalTime;

/**
 * 会议预定实体类
 * @Author czx
 * @Date 2025/3/3
 * @Time 14:16
 */
public class Reservation {
    private MeetingRoom meetingRoom;//会议室->组合的方式
    private LocalDate date;//预定日期
    private LocalTime startTime;
    private LocalTime endTime;

    public Reservation(MeetingRoom meetingRoom, LocalDate date, LocalTime startTime, LocalTime endTime) {
        this.meetingRoom = meetingRoom;
        this.date = date;
        this.startTime = startTime;
        this.endTime = endTime;
    }
    //setter和getter方法

    public MeetingRoom getMeetingRoom() {
        return meetingRoom;
    }

    public void setMeetingRoom(MeetingRoom meetingRoom) {
        this.meetingRoom = meetingRoom;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    public LocalTime getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalTime startTime) {
        this.startTime = startTime;
    }

    public LocalTime getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalTime endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return "预定信息{" +
                "meetingRoom=" + meetingRoom +
                ", date=" + date +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                '}';
    }

}
